import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'business/enterprise/add',
    method: 'post',
    data
  })
}

export function del(id) {
  return request({
    url: '/business/enterprise/delete/' + id,
    method: 'post',
  })
}

export function edit(data) {
  return request({
    url: '/business/enterprise/update',
    method: 'post',
    data
  })
}

export function get(id) {
  return request({
    url: `/business/enterprise/info/${id}`,
    method: 'get'
  })
}

export function getSummary(category) {
  return request({
    url: `/business/enterprise/elegant_demeanour/head/` + category,
    method: 'get'
  })
}


export function editSummary(data) {
  return request({
    url: '/business/enterprise/elegant_demeanour/head/update',
    method: 'post',
    data
  })
}
export default { add, edit, del, get, getSummary, editSummary}

